package com.design.pattern.adapter;

//适配器-继承模式，继承源（旧功能）实现目标（新功能
public class LogAdapter1 extends LogWriteFileServiceImpl implements LogWriteDbService{
    @Override
    public void logWriteDb(LogBean logBean) {
        System.out.println(">>>写入到数据库中..");
        this.logWriteFile();
    }
}
